<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选你喜欢</title>
</head>
<body>
    <div id="app">
        <h3>选择你的喜欢
        </h3>
<!-- 循环 -->
        <label v-for="(item, index) in listBox" :key="index">
            <input type="checkbox" :value="item" v-model="arrChecked" />{{item}}
        </label>
        <ul>
            <li v-for="(item, index) in arrChecked" :key="item.id">{{item}}</li>
        </ul>
    </div>
</body>
</html>
<script src="http://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"> </script>

<script>
    new Vue({
      el: "#app",
      data: {
// 存储选中的
        arrChecked: [],
        // 存储可选的
        listBox: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
        isChecked: false,
      }
    });
  </script>